package com.sunday.boot3.user.center.pojo.dto.user;

import com.sunday.common.core.gson.GsonUtils;
import com.sunday.common.core.remoting.base.auth.BaseDTO;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 获取授权用户信息 请求 DTO
 *
 * @author sunday
 * @since 2024/9/23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GetAuthUserReqDTO extends BaseDTO {

    /**
     * 名称
     */
    @NotBlank
    @Size(min = 1, max = 50)
    private String username;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }
}
